<template>
    <NuxtLink v-if="appStore.getWebsiteConfig.pc_logo" class="flex" to="/">
        <img :src="appStore.getWebsiteConfig.pc_logo" class="h-[40px] w-auto" />
    </NuxtLink>
</template>
<script lang="ts" setup>
import { useAppStore } from '~~/stores/app'
const appStore = useAppStore()
</script>

<style lang="scss" scoped>
.flex img {
    max-width: 180px; /* 限制最大宽度 */
    object-fit: contain; /* 保持图片比例 */
}
</style>
